package com.xigua.juc.lock;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2021/8/2516:54
 */
public class A {
    private  long num;

    AtomicInteger atomicInteger = new AtomicInteger();

    public long getNum() {
        return atomicInteger.get();
    }

    public void setNum(long num) {
        this.num = num;
    }

    public  void increase(){
        atomicInteger.incrementAndGet();
    }

}
